package com.example.littleSpider.myapplication.fragment.gankuai.mydelivery;


import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.example.littleSpider.myapplication.R;
import com.example.littleSpider.myapplication.adapter.MySendAdapter;
import com.example.littleSpider.myapplication.base.BaseFragment;
import com.littlespider.mylibrary.util.T;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;

/**
 * Created by EDZ on 2017/12/18.
 *
 * 我的派送 派送中
 */

public class MydeliverydispatchFragment extends BaseFragment {

   @BindView(R.id.recycle_mysendall)
    RecyclerView recycle_mysendall;


    @Override
    protected int setLayout() {
        return R.layout.fragment_mysendall;
    }

    @Override
    protected void initView() {
     List<String> datas = new ArrayList<>();
     for (int i = 0; i < 20; i++) {
      datas.add("");
     }
     recycle_mysendall.setLayoutManager(new LinearLayoutManager(getContext()));
     MySendAdapter adapter = new MySendAdapter(R.layout.itme_mysend,datas);
     recycle_mysendall.setAdapter(adapter);
     //条目点击事件点击跳转相应订单详情页
     adapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
      @Override
      public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
       T.show(getContext(), "position:" + position);
      }
     });
    }

    @Override
    protected void initData() {

    }
}
